$def with(cookie, departs)
$:frender.header(title = '注册成为寻宝图会员', scripts=['user/register.js'], css = ['default/css/lite.css'], bignav = True)

<div id="content">
    <div class="layer layer-full">
        <div class="tube">
            <div class="block">
                <!-- 顶部信息 -->
                <div class="pb_8 clr">
                    <div class="myinfo">
                        <img src="$:cookie.user['avatar']" />
                        <div class="info">
                            <p>$cookie.user['screen_name'] 你好，欢迎加入寻宝图订阅会员。</p>
                        </div>
                    </div>
                </div>
                <!-- 顶部信息 -->
                <!-- 注册选项 -->
                <ul class="sw-findpp">
					<li class="dymswitch-a cur"><a href="javascript:;">注册帐号</a></li>
					<li class="dymswitch-a"><a href="javascript:;">已有帐号</a></li>
                </ul>
                <!-- 注册 -->
                <!-- 注册寻宝图帐号 -->
                <div class="dymswitch-b com-box notopborder cur" style="display: block; ">
					
                    <div class="for-cont clr">
                        <!-- 左侧 -->
                        <div class="cnt-full clr">
                            <div class="loreg-t">
                                
                            </div>
                            <div class="loreg-l">
                                <form id="reg-form" name="wei-form" method="post">
                                
                                    <!-- 邮箱 -->
                                    <dl>
                                        <dt><label>邮箱</label></dt>
                                        <dd>
                                            <input class="big_inp ipt mr8 l" type="email" id="email" autocomplete="off" name="email" required="required" />
                                        </dd>
                                        <dd class="for-error" id="err_email">
                                            <p>请输入正确的邮箱，如：hi@xunbaotu.com。</p>
                                        </dd>
                                    </dl>
                                    <!-- 密码 -->
                                    <dl>
                                        <dt><label>密码</label></dt>
                                        <dd>
                                            <input class="big_inp ipt mr8 l" type="password" id="pswd" autocomplete="off" name="pswd" required="required" />
                                        </dd>
                                        <dd class="for-error" id="err_pswd">
                                            <p>密码长度在6~32之间。</p>
                                        </dd>
                                    </dl>
                                    <!-- 确认密码 -->
                                    <dl>
                                        <dt><label>确认密码</label></dt>
										<dd style="padding-bottom:10px;">
                                            <input class="big_inp ipt mr_8 l" type="password" id="pscwd" autocomplete="off" name="pscwd" required="required" data-equals="pswd" />
                                        </dd>
                                        <dd class="for-error" style="display:none;" id="err_pscwd">
                                            <p></p>
                                        </dd>
                                    </dl>
                                    <!-- 省/市 -->
                                    <dl>
                                        <dt><label>省/市</label></dt>
										<dd style="padding-bottom:20px">
                                            <select id="depart" name="depart" required="required">
                                                <option value="">—————</option>
                                                $if departs:
                                                    $for depart in departs:
                                                        <option value="$depart.id">$depart.name</option>
                                            </select>
                                        </dd>
                                    </dl>
                                    <!-- 按钮 -->
                                    <div class="loreg-btn clr">
                                            <a class="eml_rss_btn submit" onclick="return false;" href="javascript:;"><b>注册</b></a>
                                    </div>
                                    <div class="loreg-btn clr hide _loading"><img src="$config.STATIC_PREFIX/images/common/loading_blue.gif" /></div>
                                
                                </form>
                            </div>
                            <div class="reg-info"><p>寻宝图通过第三方的安全接口绑定帐号，为保证您的账户安全，同步发送任何信息之前，都会确认得到您的同意。</p></div>
                        </div>
                        
                    </div>
                </div>
                <!-- 注册寻宝图帐号 -->
                <!-- 已有寻宝图帐号 -->
                <div class="dymswitch-b com-box notopborder" style="display:none; ">
					
                    <div class="for-cont clr">
                        <!-- 左侧 -->
                        <div class="cnt-full clr">
                            <div class="loreg-t" style="height:auto">
                                <p>你已经注册了寻宝图帐号，登录后我们会为你绑定帐号。</p>
                            </div>
                            <div class="loreg-l l">
                                <form id="login-form" name="wei-form" method="post">
								<input type="hidden" name="site" value="sina">
                                    <!-- 邮箱 -->
                                    <dl>
                                        <dt><label>邮箱</label></dt>
										<dd style="padding-bottom:20px">
                                            <input class="big_inp ipt mr_8 l" type="email" name="login_name" id="username" required="required" />
                                        </dd>
                                        <dd class="for-error" style="display:none;" id="err_username">
                                        </dd>
                                    </dl>
                                    <!-- 密码 -->
                                    <dl>
                                        <dt><label>密码</label></dt>
										<dd style="padding-bottom:20px">
                                            <input class="big_inp ipt mr_8 l" type="password" id="pwd" name="pwd" required="required"/>
                                        </dd>
                                    </dl>
                                    
									<div class="clr u-chk">
										<input id="login-rem" class="chk l" type="checkbox" name="remember" checked /><label for="login-rem" class="l">记住登录状态</label>
									</div>

                                    <!-- 按钮 -->
                                    <div class="loreg-btn clr">
                                        <a class="eml_rss_btn submit" href="javascript:;" onclick="return false;"><b>登录并绑定</b></a><img src="$config.STATIC_PREFIX/images/common/loading_blue.gif" class="hide _login_loading"/>
                                    </div>
                                    <div><a href="/reset-password">忘记密码？</a></div>
                                
                                </form>
                            </div>
							<div class="loreg-r l forwtimg">
								<p><img src="" style="display:none;"></p>
							</div>
                            <div class="reg-info"><p>寻宝图通过第三方的安全接口绑定帐号，为保证您的账户安全，同步发送任何信息之前，都会确认得到您的同意。</p></div>
                        </div>
                    </div>
                </div>
                <!-- 已有寻宝图帐号 -->
                <!-- 注册寻宝图帐号 -->
                <div class="dymswitch-c com-box notopborder cur" style="display: none; ">
					
                    <div class="for-cont clr">
                        <!-- 左侧 -->
                        <div class="cnt-full clr">
                            <div class="loreg-t">
                            </div>
                            <div class="loreg-l center" style="width:100%;">
                                <p class="big_fnt"><img style="display:inline;" class="middle" src="$config.STATIC_PREFIX/images/common/valid_24.png" /><span>注册成功，一封确认邮件已发送到你的邮箱中，请查收。</span></p>
                                <p class="loreg-suc-btn"><a class="eml_rss_btn" id="receive_mail" href="javascript:;"><b>立即查收邮件</b></a></p>

                                
                            </div>
                        </div>
                        
                    </div>
                </div>
                <!-- 注册寻宝图帐号 -->
            </div>
        </div> 
    </div>
</div>

$:frender.footer(bignav = True)
